package com.cn.mapper.dao.db1.mc;

import com.cn.bean.pojo.mc.K3Dy;
import com.cn.bean.pojo.mc.K3Fl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface K3WhDao {
    //  查看k3维护界面
    List<K3Fl> selectK3FlAll();

    List<K3Dy> selectK3DyAll(@Param("limit") int limit, @Param("page") int page, @Param("k3dyId") String k3dyId, @Param("k3dyMc") String k3dyMc);

    //  添加分类
    int getAutoId();

    int repeatK3flLbLevel(@Param("level") int level, @Param("k3flLb") String k3flLb);

    K3Fl selectK3flId(@Param("k3flId") int k3flId);

    int insertMcFl(@Param("k3flId") int k3flId, @Param("k3flLb") String k3flLb, @Param("k3flState") int k3flState, @Param("k3fLBz") String k3fLBz, @Param("level") int level, @Param("parentBh") int parentBh);

    //修改分类
    int upDateMcFl(@Param("k3flId") int k3flId, @Param("k3flLb") String k3flLb, @Param("k3flState") int k3flState, @Param("k3fLBz") String k3fLBz, @Param("level") int level, @Param("parentBh") int parentBh);

    int deleteK3flId(@Param("k3flId") int k3flId);
}
